package top.zhangjianyong.tools.parm.stock;

import lombok.Data;
import top.zhangjianyong.tools.validation.NumberValue;

import javax.validation.constraints.NotNull;

/**
 * @author zhangjianyong
 * @since 2025/3/24 下午2:03
 */
@Data
public class StockUserUpdateParam {
    @NotNull(message = "用户ID不能为空")
    private Long id;
    private String name;
    private String phone;
    private String email;
    @NumberValue(allowedValues = {0, 1}, message = "管理员值错误")
    private Integer admin; //0-普通用户 1-管理员
}
